package com.jcfy.project.module.domain;

import com.jcfy.framework.aspectj.lang.annotation.Excel;
import com.jcfy.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 类目对象 t_category
 *
 * @author jiangfeng
 * @date 2020-08-05
 */
public class TCategory extends BaseEntity {
    private static final long serialVersionUID=1L;

    /** 主键ID */
    private Long categoryId;

    /** 类目名称 */
    @Excel(name = "类目名称" )
    private String name;

    /** 类目关键字，以JSON数组格式 */
    @Excel(name = "类目关键字，以JSON数组格式" )
    private String keywords;

    /** 类目广告语介绍 */
    @Excel(name = "类目广告语介绍" )
    private String desc;

    /** 父类目ID */
    @Excel(name = "父类目ID" )
    private Integer pid;

    /** 类目图标 */
    @Excel(name = "类目图标" )
    private String iconUrl;

    /** 类目图片 */
    @Excel(name = "类目图片" )
    private String picUrl;

    /** $column.columnComment */
    @Excel(name = "类目图片" )
    private String level;

    /** 排序 */
    @Excel(name = "排序" )
    private Integer sort;

    /** 状态 */
    @Excel(name = "状态" )
    private Integer status;

    public void setCategoryId(Long categoryId) {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() {
        return categoryId;
    }
    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }
    public void setKeywords(String keywords) {
        this.keywords = keywords;
    }

    public String getKeywords() {
        return keywords;
    }
    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getDesc() {
        return desc;
    }
    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public Integer getPid() {
        return pid;
    }
    public void setIconUrl(String iconUrl) {
        this.iconUrl = iconUrl;
    }

    public String getIconUrl() {
        return iconUrl;
    }
    public void setPicUrl(String picUrl) {
        this.picUrl = picUrl;
    }

    public String getPicUrl() {
        return picUrl;
    }
    public void setLevel(String level) {
        this.level = level;
    }

    public String getLevel() {
        return level;
    }
    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getSort() {
        return sort;
    }
    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getStatus() {
        return status;
    }

    @Override
    public String toString(){
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("categoryId" ,getCategoryId())
            .append("name" ,getName())
            .append("keywords" ,getKeywords())
            .append("desc" ,getDesc())
            .append("pid" ,getPid())
            .append("iconUrl" ,getIconUrl())
            .append("picUrl" ,getPicUrl())
            .append("level" ,getLevel())
            .append("sort" ,getSort())
            .append("createTime" ,getCreateTime())
            .append("updateTime" ,getUpdateTime())
            .append("status" ,getStatus())
            .toString();
    }
}
